package com.ayu.shortlink.engine.remote.dto;

import com.ayu.shortlink.engine.common.convention.result.Result;
import com.ayu.shortlink.engine.dao.entity.CouponTemplateDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "Ayu-ShortLink-admin")
public interface IAdminService {

    /**
     * 根据 ID 和 ShopNumber 查询具体的优惠券模版信息
     */
    @GetMapping("/api/short-link/admin/v1/coupon-template/shopNumber/find")
    Result<CouponTemplateDO> findCouponTemplate(@RequestParam("shopNumber")String shopNumber,
                                                @RequestParam("couponTemplateId") String couponTemplateId);
}
